package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.models.auth.In;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 广告滚动栏表
 * </p>
 *
 * @author stylefeng
 * @since 2017-06-20
 */
public class Advertisement extends Model<Advertisement> {

    private static final long serialVersionUID = 1L;

    /**
	 * 主键id
	 */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 广告
     */
	private String advert;
	/**
	 * 滚动条
	 */
	private String scrollbar;
	/**
	 * 创建时间
	 */
	private Date create_time;
	/**
	 * 更新时间
	 */
	private Date update_time;
	/**
	 * 状态 （0.启用 1.禁用）
	 */
	private Integer state;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAdvert() {
		return advert;
	}

	public void setAdvert(String advert) {
		this.advert = advert;
	}

	public String getScrollbar() {
		return scrollbar;
	}

	public void setScrollbar(String scrollbar) {
		this.scrollbar = scrollbar;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
